﻿@model System.Web.Mvc.HandleErrorInfo
@{
    ViewBag.Title = "Error";
    Layout = "~/Views/Shared/_Layout_sme.cshtml";
}


<style>
    .panelError {
        border: 1px inset;
        margin: 10px;
        padding: 10px;
    }
</style>


@*<div class="alert alert-danger fade in block-inner">
            <button type="button" class="close" data-dismiss="alert">×</button>
            <i class="icon-cancel-circle"></i> Show your error
        </div>
Success:
        <div class="alert alert-success fade in block-inner">
            <button type="button" class="close" data-dismiss="alert">×</button>
            <i class="icon-checkmark-circle"></i> Success Data visualization
        </div>
Warning:
        <div class="alert alert-warning fade in block-inner">
            <button type="button" class="close" data-dismiss="alert">×</button>
            <i class="icon-warning"></i> Warning &amp; default alert
        </div>
Positive Info:
        <div class="alert alert-info fade in">
            <button type="button" class="close" data-dismiss="alert">×</button>
            <i class="icon-info"></i> Positive alerts
        </div>*@
<div class="panel panel-default">
    <div class="panel-heading">
        <h6 class="panel-title"><i class="icon-deviantart2"></i>Error in the Application</h6>
        <span class="label label-info count pull-right details">Details
        </span>
    </div>
    <div class="panel-body">
        <br />

        <div class="alert alert-danger fade in block-inner">

            <h2>Some Error!! Application has got unknown exceptions.
            </h2>

        </div>
        <h4 id="msg">
            @Model.Exception.Message
        </h4>

        <div class="panelError hidden">

            <div>

                @Html.Raw(Model.Exception.ToString().Replace("\n","<br/>"))

            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(function () {
            $(".details").click(function () {
                $(".panelError").removeClass("hidden");
            });
        });
        function showError() {
            $(".panelError").toggle();
        }
    </script>
</div>

